//
// Created by wze-zero on 2024/8/22 022.
//
#include <iostream>
#include <iomanip>

using namespace std;

int main() {
    int num;
    cin >> num;
    double score[num], max = 0, min = 100, avg = 0;
    for (int i = 0; i < num; ++i) {
        cin >> score[num];
        max = score[num] > max ? score[num] : max;
        min = score[num] < min ? score[num] : min;
        avg += score[num];
    }
    avg /= num;
    cout << fixed << setprecision(2) << max << " " << min << " " << avg << endl;
    return 0;
}